package com.chd.driversystem.domain;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;

/**
 * Created by shawnfly on 17-5-2.
 */

@Entity(indexes = {@Index(value = "user_id ASC",unique = true)})
public class Assignment {
    @Id(autoincrement = true)
    private Long id;
    @NotNull
    private Long user_id;
    private Long vehicle_id;
    private Long team_id;
    private Long job_id;
    @Generated(hash = 1293524048)
    public Assignment(Long id, @NotNull Long user_id, Long vehicle_id, Long team_id,
            Long job_id) {
        this.id = id;
        this.user_id = user_id;
        this.vehicle_id = vehicle_id;
        this.team_id = team_id;
        this.job_id = job_id;
    }
    @Generated(hash = 626990260)
    public Assignment() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getVehicle_id() {
        return this.vehicle_id;
    }
    public void setVehicle_id(Long vehicle_id) {
        this.vehicle_id = vehicle_id;
    }
    public Long getTeam_id() {
        return this.team_id;
    }
    public void setTeam_id(Long team_id) {
        this.team_id = team_id;
    }
    public Long getJob_id() {
        return this.job_id;
    }
    public void setJob_id(Long job_id) {
        this.job_id = job_id;
    }
    public Long getUser_id() {
        return this.user_id;
    }
    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }
}
